package lanzhiguo.Android;

import android.app.Activity;
import android.content.Intent; //import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.TextView;

public class SMSReceiverActivity extends Activity {
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Intent startSerivce = new Intent();
		startSerivce.setAction("lanzhiguo.Android.START_AUDIO_SERVICE");
		// context.
		startService(startSerivce);
		TextView tv = new TextView(this);
		tv.setText("他姥姥的！誰又給本老爷发短信阿！我说你发个長一点的可不可与ia 。放首歌先");
		setContentView(tv);
//
		// finish();
		// tartActivity(new Intent("lanzhiguo.Android.SHOW_SPLASH"));
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub
		// return super.onKeyDown(keyCode, event);
		stopService(new Intent(
				"lanzhiguo.Android.START_AUDIO_SERVICE"));
		finish();
		return true;
	}

}
